package com.example.batch.process;

import com.example.batch.dto.IdDto;
import lombok.extern.slf4j.Slf4j;
import org.springframework.batch.item.ItemProcessor;
import org.springframework.stereotype.Component;


/**
 * @author LiYuhang
 * @version 0.1
 * @application
 * @Date 2021/7/9 12:00
 * @Description TODO
 */
@Component
@Slf4j
public class MyItemProcessor implements ItemProcessor<IdDto, IdDto> {

    @Override
    public IdDto process(IdDto idDto) throws Exception {
        log.info(" dto id :{}",idDto.getId());
        Thread.sleep(100);
        return idDto;
    }










}


